package demo;

import com.detu.InputField;

public class UserLoginDTO {
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @InputField(title = "用户名", notNull = true, regexNotMathTitle = "用户名格式错误")
    private String username;
    @InputField(title = "密码", notNull = true, regexNotMathTitle = "密码格式错误")
    private String password;

    @Override
    public String toString() {
        return "UserDTO{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
